FROM 1.1.1.1:6203/base_python/base_python:1.6
LABEL maintainer="domain.com"
RUN mkdir -p /var/log/kcimg/
RUN mkdir -p /data/static/qa.kcimg.cn/
RUN mkdir -p /var/spool/cron/
RUN mkdir -p /data/cron/
RUN mkdir -p /data/logs/cron/
RUN mv /usr/bin/python /usr/bin/python.bak
RUN ln -s /usr/local/bin/python3 /usr/bin/pythongi
EXPOSE 8001
EXPOSE 8002
EXPOSE 5555
WORKDIR /usr/local/src/qa-api/
RUN git clone -b master http://wenfan.liu%40360che.com:Centos1234@gitlab.360che.com/qa/qa-api.kcimg.cn.git
RUN pip install -r qa-api.kcimg.cn/requirements.txt -i https://pypi.douban.com/simple/
WORKDIR /usr/local/src/qa-api/qa-api.kcimg.cn
CMD /usr/local/bin/python3 manage.py env -e pro || /usr/local/bin/uwsgi --ini uwsgi.ini
